package co.baiku.boot.orm.dto;

import co.baiku.boot.common.validate.annotation.CheckField;
import co.baiku.boot.core.orm.po.Po;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

public class StudentDto extends Po<Long> {
    /**
     * 学号
     */
    @CheckField(message = "学号不能为空", notEmpty = true)
    private String studentNo;
    /**
     * 用户id
     */
    @CheckField(message = "用户id不能为空", notEmpty = true)
    private String userId;

    private String classNo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime inAt;

    /**
     * 奖学金
     */
    private BigDecimal amount;

    public String getClassNo() {
        return classNo;
    }

    public void setClassNo(String classNo) {
        this.classNo = classNo;
    }

    public String getStudentNo() {
        return studentNo;
    }

    public void setStudentNo(String studentNo) {
        this.studentNo = studentNo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public LocalDateTime getInAt() {
        return inAt;
    }

    public void setInAt(LocalDateTime inAt) {
        this.inAt = inAt;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
}
